FROM rs:u18-ros

# build参数
ARG user=docker
ARG password=docker

# 元数据
LABEL maintainer="jiejie" 
LABEL email="jiejietop@gmail.com"
LABEL org.label-schema.schema-version="1.0"
LABEL org.label-schema.build-date="2022-04"
LABEL org.label-schema.name="rs:u18-ros"
LABEL org.label-schema.description="Ubuntu 18 and ros-melodic-hdmap image"
LABEL org.label-schema.docker.cmd="\
docker run \
-it \
--privileged \
-v [host path]:[work path] \
-p [docker port-port]:[docker port-port] \
-d rs:u18-ros \
"


USER root

# Setup environment
# RUN apt-get install -y locales apt-utils sudo

RUN locale-gen zh_CN.UTF-8
ENV \
    LANG=zh_CN.UTF-8 \
    DEBIAN_FRONTEND=noninteractive \
    TERM=xterm


# 设置时区为上海
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

RUN apt-get install -y \
    libspdlog-dev \
    libpqxx-dev 
    

RUN chsh -s /bin/zsh
RUN usermod -s /bin/zsh ${user}

USER ${user}


